package com.db.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author vodka
 * @since 2023-10-27
 */
@TableName("mqtt_user")
public class MqttUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * mqtt客户端连接用户名
     */
    private String username;

    /**
     * mqtt客户端连接密码
     */
    private String password;

    /**
     * 盐值
     */
    private String salt;

    /**
     * 是否为超级管理员
     */
    private Boolean isSuperuser;

    /**
     * 创建时间
     */
    private Date created;

    /**
     * 租户ID
     */
    private String tenantId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public Boolean getIsSuperuser() {
        return isSuperuser;
    }

    public void setIsSuperuser(Boolean isSuperuser) {
        this.isSuperuser = isSuperuser;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    @Override
    public String toString() {
        return "MqttUser{" +
        ", id = " + id +
        ", username = " + username +
        ", password = " + password +
        ", salt = " + salt +
        ", isSuperuser = " + isSuperuser +
        ", created = " + created +
        ", tenantId = " + tenantId +
        "}";
    }
}
